<?

define ("_OBJECT_SITE_PATH", dirname ($_SESSION["PHP_SELF"]));

set_include_path ($_SERVER["DOCUMENT_ROOT"] . ":" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/:" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/include:" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/admin:" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/admin/include:" . get_include_path ());

require_once ("main.include.inc");

global $_OBJECT_IFACE;
global $_GLOBAL_DBH;
global $_OBJECT_IFACE_DISPLAY;
global $_OBJECT_IFACE_PANEL;
global $_OBJECT_TABBING;

$_OBJECT_IFACE_PANEL = _app_create_iface_panel ();

$_OBJECT_IFACE_DISPLAY->insert_container ($_OBJECT_IFACE_PANEL);


if (!$_REQUEST["fs_tab"] || $_REQUEST["fs_tab"] == "main") {

	require_once ("fs_messages.inc");
}

if (isset($_REQUEST["message_id"]) && ($_REQUEST["message_id"] > 0))

	$_OBJECT_TABBING = _app_create_tabbing_object ( array (

	fs_tab_id => "fs_tab",
	fs_tab_key => "message_id",
	fs_tab_value => $_REQUEST["message_id"],
	fs_tab_default => "main",
	fs_tab_hide_one => true,
	fs_tabs => array (
		array (label=>"Messages", fs_tab=>"main", wrapper=>"css_tab_message",
				options=>"fs_action=view"),
	),
));

$_OBJECT_IFACE_PANEL->insert_container ($_OBJECT_TABBING, 0);

$_OBJECT_IFACE->show_container ();

?>
